<%--
  Created by IntelliJ IDEA.
  User: solitude
  Date: 2020/7/11
  Time: 18:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page import="util.UsersDAO" %>
<%@ page import="java.lang.*" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
    <head>
        <title>2048</title>
    </head>
    <body>
        <script>
            <%
            request.setCharacterEncoding("utf-8");
               UsersDAO.update(request.getParameter("newName"),Integer.parseInt(request.getParameter("newScore")));
            %>
            alert("成绩已保存成功!");
            window.location.href = "index.jsp";
        </script>
    </body>
</html>
